/* $Id: JMapContextMenu.java 51 2010-01-11 00:54:55Z aaron.day $ */
package org.crazydays.gameplan.map.swing;


import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;

import org.crazydays.gameplan.Controller;

/**
 * JMapContextMenu
 */
public class JMapContextMenu
    extends JPopupMenu
{
    /** serial version uid */
    public final static long serialVersionUID =
        "$Id: JMapContextMenu.java 51 2010-01-11 00:54:55Z aaron.day $"
            .hashCode();

    /** controller */
    protected Controller controller;

    /**
     * JMapContextMenu constructor.
     * 
     * @param controller Controller
     */
    public JMapContextMenu(Controller controller)
    {
        this.controller = controller;
        build();
    }

    /**
     * Build menu.
     */
    protected void build()
    {
        add(new JMenuItem(controller.getActions().getToggleGrid()));

        addSeparator();
        addSeparator();

        // TODO: add menu items
        // // add properties
        // JMenuItem properties =
        // new JMenuItem(new MapPropertiesAction("Properties", getMapFrame()
        // .getGameMap()));
        // add(properties);
    }
}
